package com.sadhoc.router.neighbor;

import java.io.Serializable;

public class NeighborTableEntry implements Serializable {
	
	private static final long serialVersionUID = 5105088541847551044L;
	
	public static final byte ASYM = 0;
	public static final byte SYM = 1;
	public static final byte LOST = 2;
	
	private byte neighborType;
	
	public NeighborTableEntry() {
		setNeighborType(LOST);
	}
	
	public NeighborTableEntry(byte neighborType) {
		this.setNeighborType(neighborType);
	}

	public byte getNeighborType() {
		return neighborType;
	}

	public void setNeighborType(byte neighborType) {
		this.neighborType = neighborType;
	}
	
	public String toString() {
		switch(neighborType) {
			case ASYM:
				return "ASYM";
			case SYM:
				return "SYM";
			default:
				return "LOST";
		}
	}

}
